﻿function btnClick() {

    var obj = $("#UserName");
    var temp = obj.val();

    if (temp == "") {

        alert("用户名不能为空");
        obj.focus();
        return false;
    }


    obj = $("#UserPwd");


    temp = obj.val();

    if (temp == "") {

        alert("密码不能为空");
        obj.focus();
        return false;
    }
}

$(document).ready(function () {

    //用来处理当cookie没有时，从框架页面跳出来
    if (window.top) {
        if (window.top.location != window.self.location) {
            window.top.location = window.self.location;
        }
    }

    if ($("#UserName").val() == "") {

        $("#UserName").focus();
    }
});
